import 'package:get/get.dart';

import '../modules/ecg/bindings/ecg_binding.dart';
import '../modules/ecg/views/ecg_view.dart';
import '../modules/home/bindings/home_binding.dart';
import '../modules/home/views/home_view.dart';
import '../modules/login/bindings/login_binding.dart';
import '../modules/login/views/login_view.dart';
import '../modules/my_patient/bindings/my_patient_binding.dart';
import '../modules/my_patient/views/my_patient_view.dart';
import '../modules/server_settings/bindings/server_settings_binding.dart';
import '../modules/server_settings/views/server_settings_view.dart';

part 'app_routes.dart';

class AppPages {
  AppPages._();

  static const INITIAL = Routes.LOGIN;

  static final routes = [
    GetPage(
      name: _Paths.HOME,
      page: () => const HomeView(),
      binding: HomeBinding(),
    ),
    GetPage(
      name: _Paths.LOGIN,
      page: () => LoginView(),
      binding: LoginBinding(),
    ),
    GetPage(
      name: _Paths.SERVER_SETTINGS,
      page: () => ServerSettingsView(),
      binding: ServerSettingsBinding(),
    ),
    GetPage(
      name: _Paths.MY_PATIENT,
      page: () => const MyPatientView(),
      binding: MyPatientBinding(),
    ),
    GetPage(
      name: _Paths.ECG,
      page: () => const EcgView(),
      binding: EcgBinding(),
    ),
  ];
}
